package de.distMLP.messages;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

public class DoubleMessage extends HamaMessage {
	private double value;

	public DoubleMessage(final double value) {
		super();
		this.value = value;
	}

	public DoubleMessage() {
		super();
	}

	public double getDoubleValue() {
		return this.value;
	}

	@Override
	public void readFields(final DataInput in) throws IOException {
		this.value = in.readDouble();
	}

	@Override
	public void write(final DataOutput out) throws IOException {
		out.writeDouble(this.value);
	}
}
